/* IntArraySort.h
 * Author: mtreece
 * Date: 02/17/2010
 * Purpose:
 *  Header file for IntArraySort.cpp
 */

/* TODO: Add field to show original project
         these files .cpp src files came from. */

#ifndef INTARRAYSORT_H
#define INTARRAYSORT_H

#define uint32 unsigned int

enum SortType{
	INSERT_SORT
};

class IntArraySort{
	private:
		static void insertSort(int[], int);

		static int cmpfun(int, int);

	public:
		/* Sorting method for an array of
		 * of integers.
		 * 
		 * params:
		 *  1) actual array
		 *  2) size of array
		 *  3) type of sort:
		 *     Available:
		 *     -> Insertion Sort
		 *        INSERT_SORT
		 * 
		 */
		static void sort(int[], int, enum SortType);

};

// typedef int (*CMPFUN)(int, int);
typedef int (*CMPFUN)(int, int);

#endif
